// 动画效果定义

// 淡入动画
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

// 从下方滑入
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// 从右侧滑入
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

// 缩放进入
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

// 脉冲动画
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

// 呼吸灯效果
@keyframes breathing {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

// 旋转动画
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

// 闪烁光标
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

// 波纹效果
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

// 渐变背景动画
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

// 打字机效果
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

// 加载点动画
@keyframes loadingDots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60% {
    content: '...';
  }
  80%, 100% {
    content: '';
  }
}

// 发光效果
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.8), 0 0 40px rgba(124, 58, 237, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
  }
}

// 浮动效果
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

// 抖动效果
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-2px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(2px);
  }
}

// 动画类
.animate-fadeIn {
  animation: fadeIn @duration-normal @ease-out;
}

.animate-slideInUp {
  animation: slideInUp @duration-normal @ease-out;
}

.animate-slideInRight {
  animation: slideInRight @duration-normal @ease-out;
}

.animate-scaleIn {
  animation: scaleIn @duration-normal @ease-spring;
}

.animate-pulse {
  animation: pulse 2s @ease-in-out infinite;
}

.animate-breathing {
  animation: breathing 3s @ease-in-out infinite;
}

.animate-rotate {
  animation: rotate 1s linear infinite;
}

.animate-blink {
  animation: blink 1s infinite;
}

.animate-glow {
  animation: glow 2s @ease-in-out infinite;
}

.animate-float {
  animation: float 3s @ease-in-out infinite;
}

.animate-shake {
  animation: shake 0.5s @ease-in-out;
}

